<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Add new Article</title>
    </head>
    <body>
        <form method="POST" action='BlogController' name="frmAddBlog">
            <% String action = request.getParameter("action");
                System.out.println(action);
            %>
             <input type="hidden" readonly="readonly" name="blogId" value="<c:out value="${blog.id}" />" /> <br /> 
                       文章标题 : <input type="text" name="title" value="<c:out value="${blog.title}" />" /> <br />
                       文章内容 : <textarea name="content"><c:out value="${blog.content}"/></textarea>  <br /> 
                       发布日期 : <input type="text" name="publish" value="<fmt:formatDate pattern="yyyy-MM-dd" value="${blog.publish}" />" />(2016-01-01)  <br /> 
           <input  type="submit" value="保存" />
        </form>
    </body>
</html>